package com.exercise;

public class Exercise01 extends Thread{
    public void run() {
        displayOutput( this.getName() + "t is run");
    }
    public void displayOutput(String s){
        System.out.println(s);
    }

    public static void main(String[] args) {
        Thread t = new Exercise01();
        ((Exercise01) t).displayOutput("t has ben created");
        t.start();
    }
}
